import { Input, Modal } from "antd";

type ChunkEditModalProps = {
  visible: boolean;
  onVisibleChange: (v: boolean) => void;
};
export default function ChunkEditModal(props: ChunkEditModalProps) {
  const { visible, onVisibleChange } = props;
  return (
    <Modal
      open={visible}
      title="编辑分块"
      onCancel={() => onVisibleChange(false)}
    >
      <Input.TextArea
        autoSize={{ minRows: 5, maxRows: 8 }}
        className="resize-none"
      />
    </Modal>
  );
}
